package com.itwill.ecom.board;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.session.SqlSession;

public interface BoardDao {
	public abstract int create(BoardBeans boardBeans);

	public abstract List<BoardBeans> readAll(HashMap<String, String> pageMap);

	public abstract List<BoardBeans> readByType(HashMap<String, String> pageMap);
	
	public abstract BoardBeans readByNo(int boardno);

	public abstract List<BoardBeans> readByNickname(HashMap<String, String> pageMap);

	public abstract List<BoardBeans> readById(HashMap<String, String> pageMap);

	public abstract List<BoardBeans> readByTitle(HashMap<String, String> pageMap);

	public abstract List<BoardBeans> readByContent(HashMap<String, String> pageMap);
	
	public abstract int readAllCount();
	
	public abstract int readCountByType(String type);
	
	public abstract int readMaxNo(String id);

	public abstract int update(BoardBeans updateBoard);

	public abstract int updateShow(int boardno);

	public abstract int updateRecommend(int boardno);

	public abstract int delete(int board_no);

}